package com.zuxia.impservices;

import java.util.List;

import com.zuxia.iDao.PositioninfoDAOI;
import com.zuxia.iservices.PositioninfoServicesI;
import com.zuxia.po.Positioninfo;

public class PositioninfoServices implements PositioninfoServicesI{
	public PositioninfoDAOI positioninfodao;
	

	public PositioninfoDAOI getPositioninfodao() {
		return positioninfodao;
	}

	public void setPositioninfodao(PositioninfoDAOI positioninfodao) {
		this.positioninfodao = positioninfodao;
	}

	public List showPositioninfo() {
		// TODO Auto-generated method stub
		//查询所有的职位
		System.out.println("我将要查询所有职位");
		List list = positioninfodao.showPositioninfo();
		System.out.println("将要返回结果");
		return list;
	}
	
	/**
	 * 只查询部门的id和名字 谌华勇 
	 */
	public List showPositionOnlyIdAndName() {
				//查询所有的职位
				System.err.println("我将要查询所有职位");
				//List list = positioninfodao.showPositionOnlyIdAndName();
				System.err.println("将要返回结果");
				//return list;
				return null;
	}

	public Positioninfo idshow(int ptIid) {
		// TODO Auto-generated method stub
		//根据id查询寻相应职位
		System.out.println("我将要查询职位");
		Positioninfo p=positioninfodao.showIdPositioninfo(ptIid);
		System.out.println("将要返回结果");
		return p;
	}
	
}
